#include "et_types.h"

#define CMD_SETUP					0x90
#define CMD_SETUP_ACK 				0x9f

#define TYPE_KEY					0x60
#define TYPE_AUDIO_DEV				0x70
#define TYPE_OLED_DEV				0x80
#define TYPE_FAC_NORM_MODE		0x90

#define KEY_A						0x01
#define KEY_B						0x02

#define FAC_MODE 					0x01
#define NORM_MODE 					0x02
#define FACTORY						"factory"
#define NORMAL						"normal"

#define ACK_BAROMETRIC_TEST_LEN    9
#define ACK_UID_LEN					69
#define ACK_KEY_LEN					7
#define ACK_MODE_LEN	 			6
#define FAC_NORM_MODE_LEN	  		16

#define TEST_AUDIO_LEN				242958

et_int32 parse_msg_from_uart(et_uchar *msg_buf, et_int32 data_len);
SpiFlashOpResult get_fac_norm_mode(et_uchar *result);